package org.knot.mockejb3.annotation;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

import org.knot.mockejb3.EjbBeanAccess;


/**
 * 
 * 注释处理的宽接口参数类
 * 
 * @author yuxiaowei
 *
 */
@SuppressWarnings("unchecked")
public class RuleParams {
    
    //有状态的SessionBean的key，防止循环依赖
    private String key;
    
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public RuleParams()
    {
        
    }
    
    public RuleParams(int falg)
    {
        this.falg = falg;
    }
    
    //标记当前数据来源 0:class   1:methods  2:field 
    private Integer falg = null;
    
    private Field field;
    
    private Method method;
    
    private Class clazz;
    
    private Class interfaceClass;
    
    private Class implClass;
    
    private EjbBeanAccess sessionBean;
    
    public EjbBeanAccess getSessionBean() {
        return sessionBean;
    }

    public void setSessionBean(EjbBeanAccess sessionBean) {
        this.sessionBean = sessionBean;
    }

    public Class getInterfaceClass() {
        return interfaceClass;
    }

    public void setInterfaceClass(Class interfaceClass) {
        this.interfaceClass = interfaceClass;
    }

    public Class getImplClass() {
        return implClass;
    }

    public void setImplClass(Class implClass) {
        this.implClass = implClass;
    }

    public Integer getFalg() {
        return falg;
    }

    public void setFalg(int falg) {
        this.falg = falg;
    }

    public Field getField() {
        return field;
    }

    public void setField(Field field) {
        this.field = field;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

}
